package com.evan.wj.dao;

import com.evan.wj.pojo.Character;
import com.evan.wj.pojo.Career;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface CharacterDAO extends JpaRepository<Character,Integer>, JpaSpecificationExecutor<Character> {
    List<Character> findAllByCareer(Career career);

    List<Character> findAllByNameLikeOrEnglishNameLike(String keyword1, String keyword2);

    List<Character> findAll(Specification<Character> var1);
}
